package com.guoranhao.web.util;

import java.util.concurrent.ThreadFactory;

public class MyThreadFactory implements ThreadFactory {
	
	private String threadName;

	public MyThreadFactory(String threadName) {
		super();
		this.threadName = threadName;
	}
	
	@Override
	public Thread newThread(Runnable r) {
		Thread t = new Thread(r, threadName + "-Thread-"); 
		return t;
	}

}
